package com.bolt.admin;

import com.bolt.admin.logging.annotation.EnableLogging;
import com.bolt.report.config.EnableReport;
import com.bolt.support.spring.jpa.repository.ExtBasicJpaRepositoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by Administrator on 2019/1/11.
 */
@SpringBootApplication(scanBasePackages = {"com.bolt"} )
@EnableTransactionManagement
@EntityScan({"com.bolt.**.entity"})
@EnableJpaRepositories(basePackages = {"com.bolt.**.repository"}, repositoryBaseClass = ExtBasicJpaRepositoryImpl.class)
@EnableLogging
@EnableReport
public class BoltWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(BoltWebApplication.class, args);
    }


}
